import { showSuccessToast, showFailToast, showConfirmDialog } from 'vant';

export default {
  install(app)
  {
    // app == createApp == Vue应用

    //在全局应用上面添加了一个自定义的属性
    app.config.globalProperties.$success = showSuccessToast
    app.config.globalProperties.$fail = showFailToast
    app.config.globalProperties.$confirm = showConfirmDialog

    
  }
}